package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.UserActDashboardDO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserActDashboardDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserActDashboardDO record);

    int insertSelective(UserActDashboardDO record);

    UserActDashboardDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserActDashboardDO record);

    int updateByPrimaryKey(UserActDashboardDO record);

    int getUserLoginCount(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<UserActDashboardDO> getUserLoginList(@Param("startTime") String startTime,
                                              @Param("endTime") String endTime,
                                              @Param("offset") Integer offset,
                                              @Param("limit") Integer limit);

    List<UserActDashboardDO> getUserLoginStatistic(@Param("startTime") String startTime, @Param("endTime") String endTime);
}